/**
 * @author        yangmingchao <amustlang_yang@foxmail.com>
 * @date          2024-01-08 22:33:02
 * Copyright © YourCompanyName All rights reserved
 */
import request from '@/utils/request'

// 查询短剧视频列表
export function listVideo(query) {
  return request({
    url: '/drama/video/page',
    method: 'get',
    params: query
  })
}

// 查询短剧视频详细
export function getVideo(id) {
  return request({
    url: '/drama/video/' + id,
    method: 'get'
  })
}

// 新增短剧视频
export function addVideo(data) {
  return request({
    url: '/drama/video',
    method: 'post',
    data: data
  })
}

// 修改短剧视频
export function updateVideo(data) {
  return request({
    url: '/drama/video',
    method: 'put',
    data: data
  })
}

// 删除短剧视频
export function delVideo(id) {
  return request({
    url: '/drama/video/' + id,
    method: 'delete'
  })
}


// 新-审核
export function submitReview(data) {
  return request({
    url: `/drama/video/submitReview/${data.id}`,
    method: 'post',
    data: {}
  })
}

// 新-上架
export function release(data) {
  return request({
    url: `/drama/video/up/${data.id}`,
    method: 'post',
    data: {}
  })
}
// 新-下架
export function cancelRelease(data) {
  return request({
    url: `/drama/video/down/${data.id}`,
    method: 'post',
    data: {}
  })
}